package faceService;

import com.qcloud.image.ImageClient;
import com.qcloud.image.request.FaceGetFaceIdsRequest;
import util.AppContast;

import static com.qcloud.image.http.RequestBodyKey.BUCKET;

/**
 * Created by Administrator on 2017/9/28.
 */
public class GetFaceMessage {

    public void getFaceMessage(String personId) {
        ImageClient imageClient = new ImageClient(AppContast.APP_ID, AppContast.SERCET_ID, AppContast.SERCET_KEY);
        String bucketName = BUCKET;

        String getFacePersonId = personId;
        FaceGetFaceIdsRequest getFaceIdsReq = new FaceGetFaceIdsRequest(bucketName, getFacePersonId);
        String ret = imageClient.faceGetFaceIds(getFaceIdsReq);
        System.out.println("face get face ids  ret:" + ret);
    }
}
